﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Query_Incident : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void searchIncidentIDButton_Click(object sender, EventArgs e)
    {
        int value2 = Int32.Parse(inputIncidentID.Text);
        Response.Redirect("~/Incident.aspx?ID=" + value2);  
    }
    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {
        GridViewRow row = GridView1.SelectedRow;
        int value = Int32.Parse(row.Cells[1].Text);
        Response.Redirect("~/Incident.aspx?ID=" + value);

    }
}